const got = require('got')

const instance = got.extend({
  headers: {
    'accept': '*/*',
    'accept-language': 'zh-CN,zh;q=0.9,zh-TW;q=0.8,en-US;q=0.7,en;q=0.6',
    'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.50',

  },
  hooks: {
    beforeRequest: [
      options => {
        options.headers['referer'] = options.url.origin
      }
    ]
  }
})

module.exports = instance